package PhamVanHien_LTHDT02;

public class CaculatorController {
private Caculator m_objC;
private Models m_objModels;

public CaculatorController(Caculator objC){
	m_objC = objC;
	m_objModels = new Models();
}
public double CaculatorInfo(int iOpt){
	if(iOpt==1){
		return m_objModels.tong(m_objC);
	}
	else if(iOpt==2){
		return m_objModels.hieu(m_objC);
	}
	else if(iOpt==3){
		return m_objModels.tich(m_objC);
	}
	else return m_objModels.thuong(m_objC);
}
}
